const chalk = require('chalk');

exports.consoleInfo = function(text, withType=true) {
    if (!text) {
        text = '========================================';
    }
    console.log(chalk.blue(withType ? ('INFO: ' + text) : text));
}

exports.consoleWarn = function(text, withType = true) {
    console.log(chalk.yellow( withType ? ('WARNING: ' + text) : text));
}

exports.consoleError = function (text, withType) {
    return console.log(chalk.white.bgRed(withType ? ('ERROR: ' + text) : text));
}